package org.example;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @author liukaihao
 * @date 2025/03/04
 */
@NoArgsConstructor
@AllArgsConstructor
public class OrderItem {
    /**
     * 产品ID
     */
    private int productId;
    /**
     * 数量
     */
    private int quantity;

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    /**
     * 价格
     */
    private int price;

}
